export default {
			data() {
				return {
					loading: false,
					columns: [
						['中国', '美国'],
						['深圳', '厦门', '上海', '拉萨']
					],
					columnData: [
						['深圳', '厦门', '上海', '拉萨'],
						['得州', '华盛顿', '纽约', '阿拉斯加']
					]
				}
			},
			methods: {
				openPicker() {
					this.$refs.picker.open();
				},
				confirm(e) {
					console.log('confirm', e);
				},
				change(e) {
					console.log('change');
					const {
						columnIndex,
						index
					} = e;
					if (columnIndex === 0) {
						this.loading = true;
						setTimeout(() => {
							this.$refs.picker.setColumnValues(1, this.columnData[index]);
							this.loading = false;
						}, 2000)
					}
				}
			}
		}